﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : MultiServerEngine | PhotonTestClient | Delete.xaml.cs
// //  Created : 2016 - 02 - 18 11:32
// //  Modified: 2016 - 02 - 20 12:33
// //  ********************************************************************************

using System.Windows;

namespace PhotonTestClient.Dialogs
{
    /// <summary>
    ///     Interaction logic for Delete.xaml
    /// </summary>
    public partial class Delete : Window
    {
        public MainWindow Main { get; set; }

        public Delete()
        {
            InitializeComponent();
        }

        private void Delete_Button_OnClick(object sender, RoutedEventArgs e)
        {
            Main.DeleteAccount(Username_reg.Text, Password_reg.Password);
            Close();
        }
    }
}
